"""my_crm URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from crm import views

urlpatterns = [
    url(r'^login/$', views.login, name='login'),
    url(r'^reg/$', views.reg, name='reg'),
    url(r'^index/$', views.index, name='index'),

    url(r'^client/$', views.client, name='client'),
    url(r'^my_client/$', views.client, name='my_client'),
    url(r'^add_client/$', views.edit_client, name='add_client'),
    url(r'^edit_client/(\d+)/$', views.edit_client, name='edit_client'),
    url(r'^del_client/$', views.del_client, name='del_client'),
    url(r'^follow_client/$', views.follow_client, name='follow_client'),

    url(r'^client_record/(\d+)/$', views.follow_client, name='client_record'),
    url(r'^add_follow/(?P<customer_id>\d+)/$', views.edit_follow, name='add_follow'),
    url(r'^edit_follow/(\d+)/$', views.edit_follow, name='edit_follow'),
    url(r'^logout/$', views.logout, name='logout'),
]
